function ret = cellToMatrix(vec)
	ret = [];
	for i = 1: columns(vec)
		sizeElement = rows(vec{i});
		e = vec{i};
		if (sizeElement > 1)
			for j = 1: sizeElement
				ret = [ret; e(j, :)];
			endfor
		else
			ret = [ret; e];
		endif
	endfor
endfunction